package com.ruoyi.kenuo.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 kernel_apply
 *
 * @author polo tang
 * @date 2023-09-05
 */
public class KernelApply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 来自谁申请的 */
    @Excel(name = "来自谁申请的")
    private String fromName;

    /** 添加谁为好友  向谁申请的 */
    @Excel(name = "添加谁为好友  向谁申请的")
    private String toName;

    /** 申请人的昵称 */
    @Excel(name = "申请人的昵称")
    private String fromNickName;

    /** 被申请人的昵称 */
    @Excel(name = "被申请人的昵称")
    private String toNickName;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 0：初始添加  1:同意   2：拒绝  */
    @Excel(name = "1:同意   2：拒绝")
    private Integer isAgree;

    /** 备用字段1 */
    @Excel(name = "备用字段1")
    private String remarkOne;

    /** 备用字段2 */
    @Excel(name = "备用字段2")
    private String remarkTwo;

    /** 备用字段3 */
    @Excel(name = "备用字段3")
    private String remarkThree;

    @TableField(exist = false)
    private String fromAvator;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setFromName(String fromName)
    {
        this.fromName = fromName;
    }

    public String getFromName()
    {
        return fromName;
    }
    public void setToName(String toName)
    {
        this.toName = toName;
    }

    public String getToName()
    {
        return toName;
    }
    public void setFromNickName(String fromNickName)
    {
        this.fromNickName = fromNickName;
    }

    public String getFromNickName()
    {
        return fromNickName;
    }
    public void setToNickName(String toNickName)
    {
        this.toNickName = toNickName;
    }

    public String getToNickName()
    {
        return toNickName;
    }
    public void setApplyTime(Date applyTime)
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime()
    {
        return applyTime;
    }
    public void setIsAgree(Integer isAgree)
    {
        this.isAgree = isAgree;
    }

    public Integer getIsAgree()
    {
        return isAgree;
    }
    public void setRemarkOne(String remarkOne)
    {
        this.remarkOne = remarkOne;
    }

    public String getRemarkOne()
    {
        return remarkOne;
    }
    public void setRemarkTwo(String remarkTwo)
    {
        this.remarkTwo = remarkTwo;
    }

    public String getRemarkTwo()
    {
        return remarkTwo;
    }
    public void setRemarkThree(String remarkThree)
    {
        this.remarkThree = remarkThree;
    }

    public String getRemarkThree()
    {
        return remarkThree;
    }

    public String getFromAvator() {
        return fromAvator;
    }

    public void setFromAvator(String fromAvator) {
        this.fromAvator = fromAvator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fromName", getFromName())
            .append("toName", getToName())
            .append("fromNickName", getFromNickName())
            .append("toNickName", getToNickName())
            .append("applyTime", getApplyTime())
            .append("isAgree", getIsAgree())
            .append("remarkOne", getRemarkOne())
            .append("remarkTwo", getRemarkTwo())
            .append("remarkThree", getRemarkThree())
            .toString();
    }
}
